#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from dragon.selector import Selector
from dragon.page import DraPage

class EmotionCycleSe:
    chart1 = Selector('div.chart1>div:nth-child(1)>canvas', '赚钱效应图表')
    chart2 = Selector('div.chart2>div:nth-child(1)>canvas', '套牢盘换手率图表')
    chart3 = Selector('div.chart3>div:nth-child(1)>canvas', '主线效应图表')
    chat1DetailWindow = Selector('div.chart1>div:nth-child(2)', '图表1详情浮窗')
    chat2DetailWindow = Selector('div.chart2>div:nth-child(2)', '图表2详情浮窗')
    chat3DetailWindow = Selector('div.chart3>div:nth-child(2)', '图表3详情浮窗')

class EmotionCyclePage:
    def __init__(self, draPage: DraPage):
        self.draPage=draPage
        self.chart1 = draPage.locator(EmotionCycleSe.chart1)
        self.chart2 = draPage.locator(EmotionCycleSe.chart2)
        self.chart3 = draPage.locator(EmotionCycleSe.chart3)
        self.chat1DetailWindow = draPage.locator(EmotionCycleSe.chat1DetailWindow)
        self.chat2DetailWindow = draPage.locator(EmotionCycleSe.chat2DetailWindow)
        self.chat3DetailWindow = draPage.locator(EmotionCycleSe.chat3DetailWindow)



